package ConveyorBelt.Util;

import java.util.ArrayList;

import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;

public class ImageUtil {
	public static Image background = null;
	public static Image logo = null; 
	public static Image win = null;
	public static Image lose = null;
	public static Image congras = null;
	public static Image startGameButton = null; 
	public static Image highScoresButton = null; 
	public static Image howToPlayButton = null;
	public static Image exitGameButton = null;
	public static Image createMapButton = null;
	public static Image backButton = null;
	public static Image resumeGameButton = null;
	public static Image roundBox = null;
	public static Image continueGameButton = null;
	public static ArrayList<Image> gameDialog = null;
	
	public static void loadAllImage() throws SlickException {
		background = new Image("background.jpg");
		logo = new Image("logo.png");
		win = new Image("win.png");
		lose = new Image("lose.png");
		congras = new Image("congras.png");
		startGameButton	= new Image("button/StartGameButton.png");
		howToPlayButton = new Image("button/HowToPlayButton.png");
		highScoresButton = new Image("button/HighScoresButton.png");
		exitGameButton = new Image("button/ExitGameButton.png");
		backButton = new Image("button/BackButton.png");
		createMapButton = new Image("button/CreateMapButton.png");
		continueGameButton = new Image("button/ContinueButton.png");
		resumeGameButton = new Image("button/ResumeButton.png");
		gameDialog = new ArrayList<Image>();									//Một mảng để chưa các khung dialog
		gameDialog.add(new Image("dialog/StandardDialog.png"));					//Khung mặc đinh
		gameDialog.add(new Image("dialog/HowToPlayDialog.png"));				//Khung How to play
		gameDialog.add(new Image("dialog/HighScoresDialog.png"));				//Khung High Scores
		roundBox = new Image("dialog/roundBox.png");
	}
}
